package com.wing.product.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wing.common.utils.JsonResult;
import com.wing.product.dao.WarehouseMaterialRequisitionRecordDetailDao;
import com.wing.product.model.entity.WarehouseMaterialRequisitionRecordDetail;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class WarehouseMaterialRequisitionRecordDetailServiceImpl extends ServiceImpl<WarehouseMaterialRequisitionRecordDetailDao, WarehouseMaterialRequisitionRecordDetail> implements WarehouseMaterialRequisitionRecordDetailService {

    @Override
    @Transactional
    public JsonResult updateComputerPractice(String id, String status){

        WarehouseMaterialRequisitionRecordDetail warehouseMaterialRequisitionRecordDetail = this.baseMapper.selectById(id);
        warehouseMaterialRequisitionRecordDetail.setStatus(status);
        this.baseMapper.updateById(warehouseMaterialRequisitionRecordDetail);
        return JsonResult.success("操作成功");
    }
}
